import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '标题',
    align: "center",
    dataIndex: 'title'
  },
  {
    title: '开始时间',
    align: "center",
    dataIndex: 'startTime'
  },
  {
    title: '结束时间',
    align: "center",
    dataIndex: 'endTime'
  },
  {
    title: '状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
  {
    title: '及格线',
    align: "center",
    dataIndex: 'pass'
  },
  {
    title: '启用',
    align: "center",
    dataIndex: 'enable_dictText'
  },
  {
    title: '总分',
    align: "center",
    dataIndex: 'totalPoints'
  },
  {
    title: '可考试次数',
    align: "center",
    dataIndex: 'frequency'
  },
  {
    title: '积分',
    align: "center",
    dataIndex: 'integral'
  },
  {
    title: '题目数',
    align: "center",
    dataIndex: 'total'
  },
];

// 高级查询数据
export const superQuerySchema = {
  title: {title: '标题',order: 1,view: 'text', type: 'string',},
  startTime: {title: '开始时间',order: 2,view: 'datetime', type: 'string',},
  endTime: {title: '结束时间',order: 3,view: 'datetime', type: 'string',},
  status: {title: '状态',order: 4,view: 'number', type: 'number',dictCode: 'dt_question_status',},
  pass: {title: '及格线',order: 5,view: 'number', type: 'number',},
  enable: {title: '启用',order: 6,view: 'number', type: 'number',dictCode: 'wx_question_check',},
  totalPoints: {title: '总分',order: 7,view: 'number', type: 'number',},
  integral: {title: '积分',order: 8,view: 'number', type: 'number',},
  frequency: {title: '可考试次数',order: 8,view: 'number', type: 'number',},
};
